#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2024/9/6 11:11
# @File           : vendor
# @IDE            : PyCharm
# @desc           : 描述


from fastapi import Depends
from core.dependencies import Paging, QueryParams


class FemaleParams(QueryParams):
    """
    列表分页
    """

    def __init__(
            self,
            params: Paging = Depends(),
            part_no: str = None,
            part_name: str = None,
            material_no: str = None,
            product_type: str = None,
            is_test: bool = None,
            is_insp: bool = None,
            is_sampling: bool = None,
            is_life_limit: bool = None,
            is_correct_order: bool = None,
            remark: str = None,
            spec_stan: str = None,
            material_type: str = None,
            part_type: str = None,
            status: str = None,

    ):
        super().__init__(params)
        self.part_no = part_no
        self.part_name = ('like', part_name)
        self.material_no = ('like', material_no)
        self.product_type = product_type
        self.is_test = is_test
        self.is_insp = is_insp
        self.is_sampling = is_sampling
        self.is_life_limit = is_life_limit
        self.is_correct_order = is_correct_order
        self.remark = remark
        self.spec_stan = spec_stan
        self.material_type = material_type
        self.part_type = part_type
        self.status = status

